﻿using System;
using System.ComponentModel.DataAnnotations;

namespace VisionCloud.Domain.DtoModel.Sys
{
    public enum RetrieveType
    {
        /// <summary>
        /// 用户名
        /// </summary>
        UserName = 0,

        /// <summary>
        /// 邮箱
        /// </summary>
        Email = 1
    }

    /// <summary>
    /// 找回账户密码
    /// </summary>
    public class RetrievePwdDto : SysBaseDto
    {
        [Required]
        public RetrieveType RetrieveWay { get; set; }

        //[Required]
        public string UserCode { get; set; }

        public string OldPassword { get; set; }
        public string NewPassword { get; set; }
        public Guid UserId { get; set; }
    }
}